<?php
ini_set("soap.wsdl_cache_enabled","0");

$service  = new SoapClient("http://docs.stratustelecom.com:8080/EnticeWS/services/billing3?wsdl");

$key = 'pass';
$key = mkResllerKey($key);

$start_date = mktime(0, 0, 0, 1, 1, 2004);
$end_date = mktime(0, 0, 0, 1, 1, 2011);

$data = $service->getRatedCallRecords('12',$key,$start_date, $end_date);

//header('Content-type: text/xml');
var_dump($data);

function mkResllerKey($key)
{
	$dt = gmdate("m/d/Y", time());
	$key =substr($dt,0,6).$key.substr($dt, 5);
	return md5($key);
}